﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TrangChu.ascx.cs" Inherits="DinhTam.Includes.TrangChu"   %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
                         
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<cc1:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender3" runat="server"
                TargetControlID="updateProgress1" VerticalSide="Middle" HorizontalSide="Center"
                VerticalOffset="10" HorizontalOffset="10" ScrollEffectDuration=".1">
            </cc1:AlwaysVisibleControlExtender> 
                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="Up_1" >
                                        <ProgressTemplate>
                                        <div style="background-color:White">
                                            <asp:Image ID="Image_loading" runat="server" ImageAlign="AbsMiddle" 
                                                ImageUrl="~/WRss/indicator.gif" />
                                        <span style="color:Blue;font-size:14px">Đang xử lý...</span>
                                        </div>
                                        </ProgressTemplate>
                                        </asp:UpdateProgress>
<asp:UpdatePanel ID="Up_1" runat="server">
<ContentTemplate>
                         
<table cellpadding="0" cellspacing="0" border="0" class="table">
			<tr><td class="td">
				<table cellpadding="0" cellspacing="0" border="0" class="table2">
					<tr><td class="td2">
						<table cellpadding="0" cellspacing="0" border="0" class="table3">
							<tr><td class="td3">
								<table cellpadding="0" cellspacing="0" border="0" class="table4">
									<tr><td class="content_wrapper_td">	
						
				<table border="0" width="100%" cellspacing="0" cellpadding="0"  class="cont_heading_table">
  <tr>
    <td  class="cont_heading_td">
        <table cellspacing="0" class="style1" border="0">
            <tr valign="middle">
                <td align="left" valign="middle">
                    <asp:Label 
            ID="lbl_nu" runat="server"></asp:Label>
                </td>
                <td align="right" valign="middle">
                    Sắp xếp theo:</td>
                <td align="right" width="110" valign="middle"><span style="padding-top:2px">
                    <asp:DropDownList ID="DropDownList_sapxep" runat="server" AutoPostBack="True" 
                        Font-Size="Small" 
                        onselectedindexchanged="DropDownList_sapxep_SelectedIndexChanged" >
    <asp:ListItem Value="1">Mặc định</asp:ListItem>
    <asp:ListItem Value="2">Giá giảm dần</asp:ListItem>
    <asp:ListItem Value="3">Giá tăng dần</asp:ListItem>
</asp:DropDownList></span></td>
            </tr>
        </table>
      </td>
  </tr>
</table>


  <table cellpadding="0" cellspacing="0" border="0" class="content_wrapper3_table">
		<tr><td class="content_wrapper3_td" align="center">		
				<!-- new_products //-->
<!-- new_products_eof //-->
 

 <asp:DataList ID="DataList_nu" runat="server" RepeatColumns="3" 
                    RepeatDirection="Horizontal" CellPadding="1" CellSpacing="1" 
                    BorderWidth="0px" onitemdatabound="DataList_load_ItemDataBound" 
                    onitemcommand="DataList_load_ItemCommand" 
                    onitemcreated="DataList_nu_ItemCreated">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Height="300px" 
                    Width="190px" />
               <ItemTemplate>  <%--fbf2f0--%>
               <div onmouseover="this.style.background = '#f4e4e5';" onmouseout="this.style.background = '';" style="border:0px inset red; width:194px; padding-right:0px">
                    <table border="0" cellpadding="0" cellspacing="0" align="center">
                                               
                        <tr><td  align="center" style="padding-left:0px;"> 
                       
                        <table align="left" border="0" cellpadding="0" cellspacing="1" style="width:194px;">
                        <tr><td align="center">
                        <a href="index.aspx?act=chitiet&id=<%# Eval("ID_SP")%>&nid=<%# Eval("ID_nhom_SP")%>&Gt=<%# Eval("id_gt")%>">
                                   <asp:Image ID="Image1" runat="server" Height="210px"  ImageUrl='<%# "~/Images/"+Eval("hinh_anh") %>' Width="190px" /></a>
                        </td></tr>
                         <tr>
                            <td  align="left" style="height:17px;">
                                <span class="productSpecialPrice"><asp:HyperLink ID="HyperLink_tensp" runat="server" ForeColor="#da0750" Text='<%# Eval("ten_sp") %>'></asp:HyperLink>
                               (MS<asp:Label ID="lbl_ID_SP" runat="server" Text='<%# Eval("ID_SP") %>'></asp:Label>)</span><asp:Image ID="Img1" runat="server" ImageUrl='<%# "~/images/"+Eval("NewIcon") %>'  />
                               </td>
                        </tr>
                        <tr>
                            <td align="left" style="height:15px;">
                                <span class="productSpecialPrice">Giá lẻ:&nbsp;<asp:Label ID="lbl_gia" 
                                    runat="server" Text='<%# Eval("gia_sp","{0:#,##0}") %>' 
                                    CssClass="hlight" ></asp:Label> VNĐ&nbsp;</span>
                                <asp:Label ID="lbl_id_nhom" runat="server" Text='<%# Eval("id_nhom_sp") %>' 
                                    Visible="False"></asp:Label>
                                <asp:Label ID="lbl_Gia_SP" runat="server" Text='<%# Eval("Gia_SP") %>' 
                                    Visible="False"></asp:Label>
                                </td>
                        </tr>
                            <tr>
                                <td align="left" class="price2_padd" style="height:15px;">
                                    <span class="productSpecialPrice">Giá sỉ: Call<asp:Label ID="lbl_moi_cu" 
                                        runat="server" Text='<%# Eval("Moi_cu") %>' Visible="False"></asp:Label>
                                    </span></td>
                            </tr>
                            <tr>
                                <td align="left" class="price2_padd" style="height:14px;">
                                    <span class="productSpecialPrice">Tình trạng:<asp:Label ID="lbl_tinh_trang" 
                                        runat="server" Text='<%# Eval("tinh_trang") %>' CssClass="hlight"></asp:Label></span>
                                </td>
                            </tr>
                        <tr>
                            <td class="price2_padd" align="left" style="height:16px; padding-bottom:5px;">
                                <span class="productSpecialPrice">Size:&nbsp;<asp:DropDownList 
                                    ID="drp_so_size" runat="server" Width="45px" CssClass="productSpecialPrice" 
                                    Font-Size="12px" ForeColor="#da0750">
                                    </asp:DropDownList></span>
                                </td>
                        </tr>
                        <tr valign="bottom">
                            <td  align="left" style="height:20px; padding-bottom: 0px;">
                                <table cellpadding="0" cellspacing="0" border="0" width="190">
                                    <tr valign="bottom">
                                        <td align="left" width="10px">
                                            <asp:ImageButton ID="b_mua_ngay" runat="server" 
                                                CommandArgument='<%# Eval("ID_SP") %>' CommandName="mua_ngay" 
                                                ImageUrl="~/Images/Mua.gif" />
                                        </td>
                                        <td align="right" style="padding-top:5px;">
                                           <a href="index.aspx?act=chitiet&id=<%# Eval("ID_SP")%>&nid=<%# Eval("ID_nhom_SP")%>&Gt=<%# Eval("id_gt")%>"> <asp:Image ID="ImageButton2" runat="server" 
                                                ImageUrl="~/Images/Chitiet.gif" style="padding-left:27px;border:0px"  /></a>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        
                        </table>
                       
                        </td></tr>
                        
                    </table>
                 </div>
                <div style="height:15px; width:190px"></div>
                </ItemTemplate>
            </asp:DataList>



         
            
	
	
        
</td>

</tr>
<tr>
<td align="center"><div class="pager">
<CC1:COLLECTIONPAGER id="CollectionPager1" runat="server" BackNextLocation="Split" 
        BackText="« Trước" NextText="Sau »" PageNumbersSeparator="&nbsp;" 
        PageNumbersStyle="PADDING-right:5px;PADDING-left:5px; text-decoration: none" 
        ResultsLocation="None" SectionPadding="10" ShowLabel="False" SliderSize="5" 
        UseSlider="True" LabelStyle="FONT-WEIGHT: bold; text-decoration: none;" 
        
        ResultsStyle="PADDING-BOTTOM:4px;PADDING-TOP:4px;FONT-WEIGHT: bold; text-decoration: none;" 
        HideOnSinglePage="False" IgnoreQueryString="False" 
        PagingMode="QueryString" FirstText="Đầu" LastText="Cuối" 
        ShowFirstLast="True" QueryStringKey="p">
         </CC1:COLLECTIONPAGER>
    <asp:Label ID="lbl_id" runat="server" Visible="False"></asp:Label>
    </div>
</td>
</tr>
  </table>			

	           
                
</td></tr></table>
							</td></tr>
						</table>									
					</td></tr>
				</table>
			</td></tr>
		</table>
</ContentTemplate>
</asp:UpdatePanel>